define(function(require, exports, module) {
    "use strict"; 
     var $ = require("$"),
        app = require("dist/application/app"),
        config = app.config,
        method = app.method;
    var echarts = require("dist/echarts/init.js");
    var $trade_echarts1=$("#trade_echarts1");
    $trade_echarts1.length && (function(e) {
        var path = $trade_echarts1.data("path");
        path && method.get(path, function(d) {
            if(config.issucceed(d)){
                echarts.line("trade_echarts1", d.data)
            }else{
                config.msg.error(d.message);
            }
            
        })

    })(); 
    var $trade_echarts=$(".js_trade_echarts");
    $trade_echarts.length && (function(e) {
        $trade_echarts.click(function(){
            var path = $(this).data("path");
            path && method.get(path, function(d) {
                if(config.issucceed(d)){
                    echarts.line("trade_echarts1", d.data)
                }else{
                    config.msg.error(d.message);
                }
                
            })
        })
    })(); 
  });